@extends('home.layouts.application')

@section('content')
    <div class="page-category" data-log="商品分类">

        <div class="page-category-wrap">

            @foreach ($categories as $category)
                    <div class="list-wrap" id="m0">
                        <h3 class="list_title">{{$category->name}}</h3>
                        <ol class="list_category">
                            @foreach($category->children as $c)
                                <li onclick="location.href='/list/{{$c->id}}'">
                                    <div class="img"><img src="{{$c->thumb}}"></div>

                                </li>
                            @endforeach
                        </ol>
                    </div>
            @endforeach
        </div>
    </div>
        @include('home.layouts._footer')
@endsection
@section('js')
<script src="/assets/mi/js/jquery.min.js"></script>
@endsection
